Optimal. Leaf size=114 \[ -\frac {\sqrt {a^2+2 a b x+b^2 x^2} (a B+A b)}{3 x^3 (a+b x)}-\frac {a A \sqrt {a^2+2 a b x+b^2 x^2}}{4 x^4 (a+b x)}-\frac {b B \sqrt {a^2+2 a b x+b^2 x^2}}{2 x^2 (a+b x)} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {770, 76} \begin {gather*} -\frac {\sqrt {a^2+2 a b x+b^2 x^2} (a B+A b)}{3 x^3 (a+b x)}-\frac {a A \sqrt {a^2+2 a b x+b^2 x^2}}{4 x^4 (a+b x)}-\frac {b B \sqrt {a^2+2 a b x+b^2 x^2}}{2 x^2 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 76
Rule 770
Rubi steps
\begin {align*} \int \frac {(A+B x) \sqrt {a^2+2 a b x+b^2 x^2}}{x^5} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \frac {\left (a b+b^2 x\right ) (A+B x)}{x^5} \, dx}{a b+b^2 x}\\ &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \left (\frac {a A b}{x^5}+\frac {b (A b+a B)}{x^4}+\frac {b^2 B}{x^3}\right ) \, dx}{a b+b^2 x}\\ &=-\frac {a A \sqrt {a^2+2 a b x+b^2 x^2}}{4 x^4 (a+b x)}-\frac {(A b+a B) \sqrt {a^2+2 a b x+b^2 x^2}}{3 x^3 (a+b x)}-\frac {b B \sqrt {a^2+2 a b x+b^2 x^2}}{2 x^2 (a+b x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 47, normalized size = 0.41 \begin {gather*} -\frac {\sqrt {(a+b x)^2} \left (3 a A+4 a B x+4 A b x+6 b B x^2\right )}{12 x^4 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 24.77, size = 911, normalized size = 7.99 \begin {gather*} \frac {2 b^3 (a+b x)^3 (a+2 b x)^{35} \left (6 b B x^2+4 A b x+4 a B x+3 a A\right )}{3 \sqrt {a^2+2 b x a+b^2 x^2} \left (-137438953472 x^{37} b^{40}-2680059592704 a x^{36} b^{39}-25391846653952 a^2 x^{35} b^{38}-155735514152960 a^3 x^{34} b^{37}-695097507184640 a^4 x^{33} b^{36}-2406264017518592 a^5 x^{32} b^{35}-6724046179794944 a^6 x^{31} b^{34}-15586101309734912 a^7 x^{30} b^{33}-30562203446804480 a^8 x^{29} b^{32}-51445338388561920 a^9 x^{28} b^{31}-75182398031003648 a^{10} x^{27} b^{30}-96232320779943936 a^{11} x^{26} b^{29}-108638277979865088 a^{12} x^{25} b^{28}-108767506700697600 a^{13} x^{24} b^{27}-96998462482022400 a^{14} x^{23} b^{26}-77314159112355840 a^{15} x^{22} b^{25}-55221240075386880 a^{16} x^{21} b^{24}-35409421758627840 a^{17} x^{20} b^{23}-20409249457766400 a^{18} x^{19} b^{22}-10580255087001600 a^{19} x^{18} b^{21}-4933278703288320 a^{20} x^{17} b^{20}-2067755685642240 a^{21} x^{16} b^{19}-778172761374720 a^{22} x^{15} b^{18}-262465791590400 a^{23} x^{14} b^{17}-79137868185600 a^{24} x^{13} b^{16}-21259428642816 a^{25} x^{12} b^{15}-5066401062912 a^{26} x^{11} b^{14}-1065250041856 a^{27} x^{10} b^{13}-196248391680 a^{28} x^9 b^{12}-31402117120 a^{29} x^8 b^{11}-4315565056 a^{30} x^7 b^{10}-501985792 a^{31} x^6 b^9-48464416 a^{32} x^5 b^8-3779440 a^{33} x^4 b^7-228760 a^{34} x^3 b^6-10084 a^{35} x^2 b^5-288 a^{36} x b^4-4 a^{37} b^3\right ) x^4+3 \sqrt {b^2} \left (137438953472 x^{38} b^{40}+2817498546176 a x^{37} b^{39}+28071906246656 a^2 x^{36} b^{38}+181127360806912 a^3 x^{35} b^{37}+850833021337600 a^4 x^{34} b^{36}+3101361524703232 a^5 x^{33} b^{35}+9130310197313536 a^6 x^{32} b^{34}+22310147489529856 a^7 x^{31} b^{33}+46148304756539392 a^8 x^{30} b^{32}+82007541835366400 a^9 x^{29} b^{31}+126627736419565568 a^{10} x^{28} b^{30}+171414718810947584 a^{11} x^{27} b^{29}+204870598759809024 a^{12} x^{26} b^{28}+217405784680562688 a^{13} x^{25} b^{27}+205765969182720000 a^{14} x^{24} b^{26}+174312621594378240 a^{15} x^{23} b^{25}+132535399187742720 a^{16} x^{22} b^{24}+90630661834014720 a^{17} x^{21} b^{23}+55818671216394240 a^{18} x^{20} b^{22}+30989504544768000 a^{19} x^{19} b^{21}+15513533790289920 a^{20} x^{18} b^{20}+7001034388930560 a^{21} x^{17} b^{19}+2845928447016960 a^{22} x^{16} b^{18}+1040638552965120 a^{23} x^{15} b^{17}+341603659776000 a^{24} x^{14} b^{16}+100397296828416 a^{25} x^{13} b^{15}+26325829705728 a^{26} x^{12} b^{14}+6131651104768 a^{27} x^{11} b^{13}+1261498433536 a^{28} x^{10} b^{12}+227650508800 a^{29} x^9 b^{11}+35717682176 a^{30} x^8 b^{10}+4817550848 a^{31} x^7 b^9+550450208 a^{32} x^6 b^8+52243856 a^{33} x^5 b^7+4008200 a^{34} x^4 b^6+238844 a^{35} x^3 b^5+10372 a^{36} x^2 b^4+292 a^{37} x b^3+4 a^{38} b^2\right ) x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 27, normalized size = 0.24 \begin {gather*} -\frac {6 \, B b x^{2} + 3 \, A a + 4 \, {\left (B a + A b\right )} x}{12 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 77, normalized size = 0.68 \begin {gather*} \frac {{\left (2 \, B a b^{3} - A b^{4}\right )} \mathrm {sgn}\left (b x + a\right )}{12 \, a^{3}} - \frac {6 \, B b x^{2} \mathrm {sgn}\left (b x + a\right ) + 4 \, B a x \mathrm {sgn}\left (b x + a\right ) + 4 \, A b x \mathrm {sgn}\left (b x + a\right ) + 3 \, A a \mathrm {sgn}\left (b x + a\right )}{12 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 44, normalized size = 0.39 \begin {gather*} -\frac {\left (6 B b \,x^{2}+4 A b x +4 B a x +3 A a \right ) \sqrt {\left (b x +a \right )^{2}}}{12 \left (b x +a \right ) x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.54, size = 255, normalized size = 2.24 \begin {gather*} -\frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} B b^{3}}{2 \, a^{3}} + \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} A b^{4}}{2 \, a^{4}} - \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} B b^{2}}{2 \, a^{2} x} + \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} A b^{3}}{2 \, a^{3} x} + \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B b}{2 \, a^{3} x^{2}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A b^{2}}{2 \, a^{4} x^{2}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} B}{3 \, a^{2} x^{3}} + \frac {5 \, {\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A b}{12 \, a^{3} x^{3}} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}} A}{4 \, a^{2} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.13, size = 43, normalized size = 0.38 \begin {gather*} -\frac {\sqrt {{\left (a+b\,x\right )}^2}\,\left (3\,A\,a+4\,A\,b\,x+4\,B\,a\,x+6\,B\,b\,x^2\right )}{12\,x^4\,\left (a+b\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.37, size = 31, normalized size = 0.27 \begin {gather*} \frac {- 3 A a - 6 B b x^{2} + x \left (- 4 A b - 4 B a\right )}{12 x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________